//
//  YCShareUI.h
//  YCVillageDoctor
//
//  Created by itclimb on 2017/7/13.
//  Copyright © 2017年 zhangxiaoliang. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^ShareUIDismissBlock)();

typedef void(^ShareUIDidSelectBlock)(NSIndexPath *indexPath, NSArray *array);

typedef NS_OPTIONS(NSUInteger, YCSharePlatform) {
    YCSharePlatformNone           = 0,
    YCSharePlatformWechatSession  = 1 << 0,
    YCSharePlatformWechatTimeLine = 1 << 1,
    YCSharePlatformWechatFavorite = 1 << 2,
    YCSharePlatformQQ             = 1 << 3,
    YCSharePlatformQzone          = 1 << 4,
    YCSharePlatformSina           = 1 << 5
};

@interface YCShareUI : UIView
//分享面板高度
@property(nonatomic, assign) CGFloat height;
//分享平台
@property(nonatomic, assign) YCSharePlatform sharePlatform;

/**
 取消Block传值

 @param block 取消Block
 */
- (void)setShareUIDismissBlock:(ShareUIDismissBlock)block;

/**
 选择Block传值

 @param selectBlock 选择Blcok
 */
- (void)setShareUIDidSelectBlock:(ShareUIDidSelectBlock) selectBlock;

@end


@interface PopCollectionViewLayout : UICollectionViewLayout
//最小Item行间距
@property (nonatomic) CGFloat minimumLineSpacing;
//最小Item列间距
@property (nonatomic) CGFloat minimumInteritemSpacing;
//Item尺寸
@property (nonatomic) CGSize  itemSize;
//Item内边距
@property (nonatomic) UIEdgeInsets sectionInset;
//属性数组
@property (nonatomic, strong) NSMutableArray * attributes;

/**
 初始化
 
 @return layout
 */
- (instancetype)init;

@end
